#include "Main.h"
#include <wx/wxprec.h>

typedef enum
{
	wxID_QUIT = 0,
};

MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
	: wxFrame(0, -1, title, pos, size)
{
	wxMenu *menuFile = new wxMenu;

	menuFile->AppendSeparator();
	menuFile->Append( wxID_QUIT, _T("E&xit") );

	wxMenuBar *menuBar = new wxMenuBar;
	menuBar->Append( menuFile, _T("&File") );

	SetMenuBar( menuBar );

	Connect( wxID_QUIT, wxEVT_COMMAND_MENU_SELECTED, wxObjectEventFunction(&MainFrame::OnQuit));

	CreateStatusBar();
	SetStatusText( _T("") );
}

void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
	Close(true);
}
